package com.xzx.masterslave.masterslave.contast;

/**
 * 数据源类型 枚举
 */
public enum DataSouceType {

    read("read","从库"),
    write("write","主库");

    private String type;
    private String name;

    DataSouceType(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
